import { forwardRef } from "react";


const GridItem = forwardRef((props: any, ref: any) => {
  const handleClick = () => {
    if (props.winer) {
      return
    }
    props.updatePlayer(props.value)
  }


  return (
    <div className="grid-item" onClick={handleClick}>{props.value2}</div>
  )
})
export default GridItem
